import execjs
import requests

base_url = 'https://match.yuanrenxue.com/api/match/1'
headers = {
    'user-agent':'yuanrenxue.com',
    'cookie':'sessionid=chnai6aeg3cgypxlrf8rgjnpjb192636'
}
def get_data(page):
    with open('1/md.js','r',encoding='utf-8') as f:
        jscode = f.read()
    ctx = execjs.compile(jscode)
    data = ctx.call('res',page)
    return data

def schedule():
    response = requests.get(
        url=base_url,
        params=get_data(1)
    )
    pass

schedule()